<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - crash.fileUtils</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	/* width: 800px; */
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	/* margin-top: 24px; */
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	/* width: 600px; */
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
</div>
<hr />
<h2>Classes / Namespaces</h2>
<ul class="classList">
	
	
	
	<li><a href="../symbols/crash.html">crash</a></li>
	
	<li><a href="../symbols/crash.date.html">crash.date</a></li>
	
	<li><a href="../symbols/crash.fileUtils.html">crash.fileUtils</a></li>
	
	<li><a href="../symbols/crash.logger.html">crash.logger</a></li>
	
	<li><a href="../symbols/crash.resourceLoader.html">crash.resourceLoader</a></li>
	
	<li><a href="../symbols/crash.st.html">crash.st</a></li>
	
	<li><a href="../symbols/crash.streams.html">crash.streams</a></li>
	
	<li><a href="../symbols/crash.test.html">crash.test</a></li>
	
	<li><a href="../symbols/crash.test.asserts.html">crash.test.asserts</a></li>
	
	<li><a href="../symbols/crash.test.groupTester.html">crash.test.groupTester</a></li>
	
	<li><a href="../symbols/crash.test.unitTester.html">crash.test.unitTester</a></li>
	
	<li><a href="../symbols/crash.timer.html">crash.timer</a></li>
	
	<li><a href="../symbols/crash.xml.html">crash.xml</a></li>
	
	<li><a href="../symbols/Date.html">Date</a></li>
	
	<li><a href="../symbols/String.html">String</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class crash.fileUtils
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
			
				The file manipulation object.
This object is constructed via the <a href="../symbols/crash.html#.file">crash.file</a> function.
				
				
					<br /><i>Defined in: </i> &lt;C:\Frizione-BleedingEdge\Frizione/frizione-projects/crash/src/core\file.js&gt;.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class crash.fileUtils.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/crash.fileUtils.html#constructor">crash.fileUtils</a></b>()
							</div>
							<div class="description"></div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class crash.fileUtils.">
					<caption>Field Summary</caption>
					<thead>
						<tr>
							<th scope="col">Field Attributes</th>
							<th scope="col">Field Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/crash.fileUtils.html#file">file</a></b>
								</div>
								<div class="description">The underlying Java File object.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class crash.fileUtils.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#canRead">canRead</a></b>()
								</div>
								<div class="description">Checks if the file can be read.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#canWrite">canWrite</a></b>()
								</div>
								<div class="description">Checks if the file can be written.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#copy">copy</a></b>(dest)
								</div>
								<div class="description">Makes a copy of the file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#exists">exists</a></b>()
								</div>
								<div class="description">Tests whether the file or directory exists.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#isDirectory">isDirectory</a></b>()
								</div>
								<div class="description">Checks if the file is a directory.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#isFile">isFile</a></b>()
								</div>
								<div class="description">Checks if the file is a normal file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#lastModified">lastModified</a></b>()
								</div>
								<div class="description">Returns the time when the file was last modified.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#list">list</a></b>(receiver)
								</div>
								<div class="description">Lists the files and directories.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#mkdirs">mkdirs</a></b>()
								</div>
								<div class="description">Creates the directory structure, including any necessary but nonexistent parent directories.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#move">move</a></b>(dest)
								</div>
								<div class="description">Moves a file to a new destination.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#name">name</a></b>()
								</div>
								<div class="description">Gets the name part of this file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#parent">parent</a></b>()
								</div>
								<div class="description">Returns the pathname string of this file's parent.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#path">path</a></b>()
								</div>
								<div class="description">Gets the path part of this file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#readBinary">readBinary</a></b>()
								</div>
								<div class="description">Reads the entire binary contents of the file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#readText">readText</a></b>(charset)
								</div>
								<div class="description">Reads the entire text contents of the file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#remove">remove</a></b>()
								</div>
								<div class="description">Removes (deletes) the file or directory.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#renameTo">renameTo</a></b>(name)
								</div>
								<div class="description">Renames the file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#size">size</a></b>()
								</div>
								<div class="description">Gets the file size in bytes.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/crash.fileUtils.html#writeText">writeText</a></b>(text, charset)
								</div>
								<div class="description">Writes the entire text contents to file.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>crash.fileUtils</b>()
				</div>
				
				<div class="description">
					
					
				</div>
				
				
				
				
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			
				<div class="sectionTitle">
					Field Detail
				</div>
				
					<a name="file"> </a>
					<div class="fixedFont">
					
					<span class="light">{java.io.File}</span>
					<b>file</b>
					
					</div>
					<div class="description">
						The underlying Java File object.
						
						
					</div>
					
					

						
						
						
						

					
				
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="canRead"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>canRead</b>()
					
					</div>
					<div class="description">
						Checks if the file can be read.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if the file exists and can be read, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="canWrite"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>canWrite</b>()
					
					</div>
					<div class="description">
						Checks if the file can be written.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if the file exists and can be written, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="copy"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>copy</b>(dest)
					
					</div>
					<div class="description">
						Makes a copy of the file.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> <b>dest</b>
									
								</dt>
								<dd>the file to be copied to.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if the copy succeeded, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="exists"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>exists</b>()
					
					</div>
					<div class="description">
						Tests whether the file or directory exists.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if the file or directory exists, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="isDirectory"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>isDirectory</b>()
					
					</div>
					<div class="description">
						Checks if the file is a directory.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if exists and is a directory, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="isFile"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>isFile</b>()
					
					</div>
					<div class="description">
						Checks if the file is a normal file.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if exists and is a normal file, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="lastModified"> </a>
					<div class="fixedFont">
					
					<span class="light">{Number}</span>
					<b>lastModified</b>()
					
					</div>
					<div class="description">
						Returns the time when the file was last modified.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Number}</span> the last modified time in milliseconds since 00:00:00 GMT, January 1, 1970.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="list"> </a>
					<div class="fixedFont">
					
					
					<b>list</b>(receiver)
					
					</div>
					<div class="description">
						Lists the files and directories.
The <code>receiver</code> function is called for each file and directory (excluding the current '.' and
parent '..' directories). It is called with three parameters:
<ul>
  <li><code>root</code> <i>{java.io.File}</i> the parent file object.</li>
  <li><code>file</code> <i>{java.io.File}</i> the child file or directory.</li>
  <li><code>dir</code> <i>{Boolean}</i> <code>true</code> if a directory, otherwise <code>false</code>.</li>
</ul>
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Function}</span> <b>receiver</b>
									
								</dt>
								<dd>the function that receives each file or directory.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="mkdirs"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>mkdirs</b>()
					
					</div>
					<div class="description">
						Creates the directory structure, including any necessary but nonexistent parent directories.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if the directory was created, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="move"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>move</b>(dest)
					
					</div>
					<div class="description">
						Moves a file to a new destination.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> <b>dest</b>
									
								</dt>
								<dd>the destination file name.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true in case file could be moved, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="name"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/String.html#constructor">String</a>}</span>
					<b>name</b>()
					
					</div>
					<div class="description">
						Gets the name part of this file.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> the name path part.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="parent"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/String.html#constructor">String</a>}</span>
					<b>parent</b>()
					
					</div>
					<div class="description">
						Returns the pathname string of this file's parent.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> the parent, or null if no parent present.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="path"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/String.html#constructor">String</a>}</span>
					<b>path</b>()
					
					</div>
					<div class="description">
						Gets the path part of this file.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> the file path part.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="readBinary"> </a>
					<div class="fixedFont">
					
					<span class="light">{java.lang.byte[]}</span>
					<b>readBinary</b>()
					
					</div>
					<div class="description">
						Reads the entire binary contents of the file.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{java.lang.byte[]}</span> the contents as a byte array, or null if the file doesn't exist.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="readText"> </a>
					<div class="fixedFont">
					
					<span class="light">{<a href="../symbols/String.html#constructor">String</a>}</span>
					<b>readText</b>(charset)
					
					</div>
					<div class="description">
						Reads the entire text contents of the file.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> <b>charset</b>
									
								</dt>
								<dd>the {optional} character set to use, defaults to "UTF-8".</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> the contents of the text file, or null if the file doesn't exist.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="remove"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>remove</b>()
					
					</div>
					<div class="description">
						Removes (deletes) the file or directory.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if the file was removed, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="renameTo"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>renameTo</b>(name)
					
					</div>
					<div class="description">
						Renames the file.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> <b>name</b>
									
								</dt>
								<dd>the name of the new file.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> true if the renaming succeeded, otherwise false.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="size"> </a>
					<div class="fixedFont">
					
					<span class="light">{Number}</span>
					<b>size</b>()
					
					</div>
					<div class="description">
						Gets the file size in bytes.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Number}</span> the size in bytes, or 0L if the file does not exist.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="writeText"> </a>
					<div class="fixedFont">
					
					
					<b>writeText</b>(text, charset)
					
					</div>
					<div class="description">
						Writes the entire text contents to file.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> <b>text</b>
									
								</dt>
								<dd>the text contents.</dd>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/String.html#constructor">String</a>}</span> <b>charset</b>
									
								</dt>
								<dd>the (optional) character set to use, defaults to "UTF-8".</dd>
							
							</dl>
						
						
						
						
						
						
						

					
				
			
			
			<hr />
		</div>
		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.0.3 on Fri Aug 22 2008 16:32:06 GMT+0200 (CEST)
		</div>
	</body>
</html>